<div class="pageHeader">
<form id="pagerForm" action="__URL__" method="post">
	
	<input type="hidden" name="name" value="{$_REQUEST.name}"/>
	<input type="hidden" name="orderField" value="{$_REQUEST.orderField}">
        <input type="hidden" name="orderDirection" value="{$_REQUEST.orderDirection}">
    <input type="hidden" name="pageNum" value="{$_REQUEST['pageNum']|default=1}"/>
	<input type="hidden" name="numPerPage" value="{$numPerPage}"/>
	 
    
</form>
    <form onsubmit="return navTabSearch(this);" class="form-inline"  action="__URL__" method="post">
       
       <div class="form-group" size="20">
       <label>组名：</label><input type="text" value="{$_REQUEST.name}" name="name" class="form-control" size="10" />
       </div>
       <div class="form-group">
       <button type="submit" class="btn btn-default btn-sm">查询</button>
       <a class="btn btn-orange btn-sm" href="javascript:navTab.reload('', {clearQuery:true});">清空查询</a>
       <a href="__URL__/add" target="dialog" rel="mroleadd" mask="true"  width="500" height="400" class="btn btn-green btn-sm">新增</a>
       </div>        
                    <div class="btn-group pull-right">
                        <button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">批量操作<span class="caret"></span></button>
                        <ul class="dropdown-menu right" role="menu">
                            <div class="log-arrow-up"></div>
                            <li><a href="__URL__/selectedDelete"  title="确定要删除选中信息吗？" target="checkedAjaxTodo" idname="ids">删除选中</a></li>
                        </ul>
                    </div>
             
        
    </form>
    
</div>
<div class="pageContent">
    <table class="j-table" width="100%" layoutH="95">
        <thead>
            <tr><th width="30">ID</th><th class="orderby <eq name="order" value="name">{$sortImg}</eq>" orderField="name">组名</th>
				<th class="orderby <eq name="order" value="pid">{$sortImg}</eq>" orderField="pid">上级组</th>
				<th class="orderby <eq name="order" value="score">{$sortImg}</eq>" orderField="score">积分</th>
				<th class="orderby <eq name="order" value="status">{$sortImg}</eq>" orderField="status">状态</th>
				<th width="100">描述</th>
				<th class="orderby <eq name="order" value="create_time">{$sortImg}</eq>" orderField="create_time">创建时间</th>
				<th class="orderby <eq name="order" value="update_time">{$sortImg}</eq>" orderField="update_time">更新时间</th>
				<th width="40"><input type="checkbox" class="checkboxCtrl j-icheck" group="ids"></th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>

           <volist id="vo" name="list">
            <tr> <td>{$vo['id']}</td>
					<td>{$vo['name']}</td>
					<td>{$vo['pid']|getGroupName}</td>
					<td>{$vo['score']}</td>
					<td>{$vo['status']|getStatus}</td>
					<td>{$vo['remark']}</td>
					<td>{$vo['create_time']|toDate}</td>
					<td>{$vo['update_time']|toDate}</td>
					<td><input type="checkbox" name="ids" class="j-icheck" value="{$vo['id']}"></td>
					<td>
                                           <a href="__URL__/config/id/{$vo['id']}/navTabId/{:CONTROLLER_NAME}" rel="mroleconfig{$vo['id']}"   target="navtab" title="{$vo['name']}权限设置" class="btn btn-green btn-sm" >权限</a> 
                                           <a href="__URL__/edit/id/{$vo['id']}/navTabId/{:CONTROLLER_NAME}" rel="mroleedit{$vo['id']}" class="btn btn-green btn-sm" target="dialog"  mask="true"  width="500" height="400" >编辑</a>           
                                             {$vo['status']|showStatus=$vo['id']}
                                            <a href="__URL__/foreverdelete/id/{$vo['id']}/navTabId/{:CONTROLLER_NAME}" class="btn btn-red btn-sm" target="ajaxTodo" title="确定要删除该行信息吗？">删</a>
                                        </td>
           
            </tr>
            
          </volist>
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            
            <span>共 {$totalCount} 条</span>
        </div>
        <div class="pagination-box" targettype="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}">
        </div>
    </div>
</div>